/*
 * SGX Public License Notice This software is the intellectual property of SGX.
 * The program may be used only in accordance with the terms of the license
 * agreement you entered into with SGX. 2003 Singapore Exchange Pte Ltd (SGX).
 * All rights reserved. 2 Shenton Way / #22-00 SGX Centre 1 Singapore( 068804 )
 */
package com.hitangjun.pattern.command;

/** 
 *
 * @author John
 * @since Sep 13, 2010
 */
public class ConcreteCommand implements Command
{

    private Receiver receiver;
    
    public ConcreteCommand(Receiver receiver )
    {
        this.receiver = receiver;
    }
    
    public void execute()
    {
        System.out.println("ConcreteCommand execute.");
        receiver.action();
    }

}
